// To parse this JSON data, do
//
//     final bankEntity = bankEntityFromJson(jsonString);

import 'dart:convert';

BankEntity bankEntityFromJson(String str) => BankEntity.fromJson(json.decode(str));

String bankEntityToJson(BankEntity data) => json.encode(data.toJson());

class BankEntity {
  List<ListBankElement> list;

  BankEntity({
    required this.list,
  });

  factory BankEntity.fromJson(Map<String, dynamic> json) => BankEntity(
    list: List<ListBankElement>.from(json["list"].map((x) => ListBankElement.fromJson(x))),
  );

  Map<String, dynamic> toJson() => {
    "list": List<dynamic>.from(list.map((x) => x.toJson())),
  };
}

class ListBankElement {
  String? bankName;
  String? bankAccount;
  int? id;

  ListBankElement({
    required this.bankName,
    required this.bankAccount,
    required this.id,
  });

  factory ListBankElement.fromJson(Map<String, dynamic> json) => ListBankElement(
    bankName: json["bank_name"],
    bankAccount: json["bank_account"],
    id: json["id"],
  );

  Map<String, dynamic> toJson() => {
    "bank_name": bankName,
    "bank_account": bankAccount,
    "id": id,
  };
}